package com.ihrm.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ihrm.domain.system.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
  * 权限数据访问接口
  */
@Repository
@Mapper
public interface PermissionDao extends BaseMapper<Permission> {
    @Select(value = "select * from pe_permission where type = #{type} and pid = #{pid}")
    List<Permission> findByTypeAndPid(int type,String pid);

    void delete(Permission permission);
}